'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	const collection =  db.collection('t_user')
	var res = await collection.where({
		phone:event.phone,
		password:event.password
	}).get() 

	return (res.affectedDocs==1);
};
